<div class="PublicLeft col-md-2 col-sm-2 col-xs-2">
    <ul class="menu">
        <li><img src="img/index/icon_home.png" alt=""/><span class="vm menuLi">首页</span><a href="javaScript:void (0)" ng-click="MenuClick('homePage')" style="color: rgba(142,154,255,1); float: right" class="vm">点击进入</a></li>
        <!--<li class="index"><div class="col-md-2 col-sm-2"><img src="img/index/icon_home.png" alt=""/></div><div class="col-md-6 col-sm-6 col-xs-6 "><span class="vm menuLi">首页</span></div><div class="col-md-4"></div><a href="#" style="color: rgba(142,154,255,1);" class="vm">点击进入</a></li>-->
        <li class="ListLi">
            <img src="img/index/icon_4c_survey.png" alt=""/><span class="vm menuLi">4C概况</span>
        </li>
        <div class="ListLimenu">
             <ul>
                 <li>
                     检测录像
                 </li>
                 <div class="ListLimenuL">
                     <p>任务分配</p>
                     <p>图像浏览</p>
                 </div>
                 <li>图像数据分析</li>
                 <div class="ListLimenuL">
                     <p>看图分析</p>
                     <p>提报记录</p>
                 </div>
                 <li>缺陷审核</li>
                 <div class="ListLimenuL">
                     <p>一级缺陷复核</p>
                     <p>一级缺陷审核</p>
                     <p>二级缺陷复核</p>
                     <p>二级缺陷审核</p>
                     <p>一级撤销缺陷记录</p>
                     <p>二级撤销缺陷记录</p>
                     <p>复核记录</p>
                     <p>审核记录</p>
                 </div>
             </ul>
        </div>
        <li><img src="img/index/icon_pie.png" alt=""/><span class="vm menuLi">对比分析</span></li>
        <li><img src="img/index/icon_bar.png" alt=""/><span class="vm menuLi">缺陷统计</span></li>
        <div class="publicleft-logo"><img src="img/index/jtw_logo.png" alt=""/></div>
    </ul>

</div>

<script>

    $(function () {
        var height = $(document.body).outerHeight(true); //浏览器时下窗口文档body的总高度 包括border padding margin
        $(".PublicLeft").css({height: (height) + "px"});
        $(window).resize(function () {         //当浏览器大小变化时
            var height = $(document.body).outerHeight(true); //浏览器时下窗口文档body的总高度 包括border padding margin
            $(".PublicLeft").css({height: height + "px"})
//            console.log(height)
        });
//        console.log(height)
        $(".PublicLeft").scroll(function () {
            var offTop = $(".PublicLeft").scrollTop();
            document.cookie = "scrollTop=" + offTop;
        });

        var reload = function () {
//            console.log($(".PublicLeft").scrollTop());
//            console.log(document.cookie);
            if (document.cookie.match(/scrollTop=([^;]+)(;|$)/) != null) {
                var arr = document.cookie.match(/scrollTop=([^;]+)(;|$)/);
                setTimeout(function () {
                    $(".PublicLeft").scrollTop(parseInt(arr[1]));
                }, 10);
//                console.log(arr[1])
            }
        };
        reload();


        var tds = $("table > tbody > tr > td");
        for (var q = 0; q < tds.length; q++) {
            if (tds[q].innerText.length > 70) {
                tds[q].innerText = tds[q].innerText.substring(0, 70) + "..."
            }
        }

    })


</script>